const mongoose = require('mongoose')
const Schema = mongoose.Schema
const articlesSchema = new Schema({
  articleName: {
    type: String,
    required: true
  },
  articleContent: {
    type: String
  },
  isshow: {
    type: Boolean,
    required: true
  },
  createTime: {
    type: String,
    default: Date.now
  },
  updateTime: {
    type: String,
    default: Date.now
  }
})
module.exports = mongoose.model('articles', articlesSchema)
